package com.learner.blog;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
* @author ice2020x
* @Date: 2023/2/23
* @Description:
**/
@EnableDiscoveryClient
@EntityScan(basePackages ={"com.learner.pojo"})
@MapperScan(basePackages ={"com.learner.blog.mapper"})
@EnableJpaRepositories(basePackages = "com.learner.blog.repository")
@ComponentScan(basePackages={"com.learner"})
@EnableJpaAuditing
@EnableFeignClients
@EnableTransactionManagement
@SpringBootApplication(exclude = {JpaRepositoriesAutoConfiguration.class})
public class LsServiceBlogApplication {
    public static void main(String[] args) {
        SpringApplication.run(LsServiceBlogApplication.class, args);
    }
}
